package com.zlb.app.modules.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zlb.app.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Desc 用户表 实体类
 * @Author zWX1367238
 * @Date 2024-09-05 14:43:29
 */
@Data
@TableName("user")
@ApiModel("用户表实体类")
public class UserInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 386373092044166502L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("用户名称/账号")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("性别，0男，1女，2未知")
    private Integer sex;

    @ApiModelProperty("手机号")
    private String mobile;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("用户状态  0 启用 1 冻结 2 禁用  等等")
    private Integer status;

    @ApiModelProperty("个人介绍")
    private String introduce;

    @ApiModelProperty("最后登录时间")
    private Date loginEndTime;

}
